export const formComponentConfig = {
  fabricateType: () =>
    import('@/views/purchase-plan/components/formComp/fabricateType.vue'),
  prepareState: () =>
    import('@/views/purchase-plan/components/formComp/fabricateType.vue'),
};

export const formRenderConfig = {
  planListNo: {
    label: '采购计划编号',
    field: 'planListNo',
    componentName: 'input',
  },

  productSuperTypeNo: {
    label: '父型号',
    field: 'productSuperTypeNo',
    componentName: 'input',
  },
  mdsItemCode: {
    label: '物料编码',
    field: 'mdsItemCode',
    componentName: 'input',
  },

  supplierName: {
    label: '供应商',
    field: 'supplierName',
    componentName: 'input',
  },
  millTypeCode: {
    label: '机型',
    field: 'millTypeCode',
    componentName: 'input',
  },

  purchaseState: {
    label: '是否采购',
    field: 'purchaseState',
    componentName: 'dictSelect',
    componentProps: {
      allowClear: 'true',
      dictType: 'purchaseState',
    },
  },
  manufactureType: {
    label: '制造类型',
    field: 'manufactureType',
    componentName: 'dictSelect',
    componentProps: {
      allowClear: 'true',
      dictType: 'manufactureType',
    },
  },

  batchFlowNo: {
    label: '架次',
    field: 'batchFlowNo',
    componentName: 'input',
  },
  batchNo: {
    label: '批次',
    field: 'batchNo',
    componentName: 'input',
  },
  missionNo: {
    label: '任务编号',
    field: 'missionNo',
    componentName: 'input',
  },

  brandNo: {
    label: '牌号',
    field: 'brandNo',
    componentName: 'input',
  },
  specification: {
    label: '规格',
    field: 'specification',
    componentName: 'input',
  },

  mdsCategoryLv1Name: {
    label: '一级品类',
    field: 'mdsCategoryLv1Name',
    componentName: 'input',
  },
  mdsCategoryLv2Name: {
    label: '二级品类',
    field: 'mdsCategoryLv2Name',
    componentName: 'input',
  },
  mdsCategoryLv3Name: {
    label: '三级品类',
    field: 'mdsCategoryLv3Name',
    componentName: 'input',
  },

  editStartDate: {
    label: '编制时间（起）',
    field: 'editStartDate',
    componentName: 'datePicker',
  },
  editEndDate: {
    label: '编制时间（止）',
    field: 'editEndDate',
    componentName: 'datePicker',
  },
  editUserName: {
    label: '编制人',
    field: 'editUserName',
    componentName: 'input',
  },
  changeNo: {
    label: '更改单编号',
    field: 'changeNo',
    componentName: 'input',
  },
};
